#include "ennemis.h"
#include "mymainwindow.h"

Ennemis::Ennemis(float t, QString d, float v, float h, float r):QGraphicsItem(),taille(t),dep(d),vitesse(v),hp(h),resist(r){}


void Ennemis::deplacer(){
    //sur quelle case ?
   /* int i = x()/(600/16);
    int j = y()/(600/16);

    //que contient la case ?
    switch (MyMainWindow::getCase(i,j)){
    case 1: {
            break;
        }
        case 2: {
            break;
        }
        case 4: {
            break;
        }
        case 5: {
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }
        case 6:{
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }
        case 8: {
            break;
        }
        case 9: {
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }
        case 10: {
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }
       case 18: {
            break;
        }

       case 17: {
            break;
        }
       case 20: {
            break;
        }
       case 21: {
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }

        case 22:{
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }

        case 24: {
            break;
        }

        case 25: {
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }

        case 26: {
            if(MyMainWindow::getCase(i-1,j)==1||MyMainWindow::getCase(i-1,j)==2){
                break;
            }
            else{
                break;
            }
        }
       case 32: {
            break;
        }
    }*/
}
